//
//  DesSearchDataObj.m
//  HappyTrip
//
//  Created by yuxuesong on 15-4-1.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "DesSearchDataObj.h"

@implementation DesSearchDataObj

- (void)dealloc
{
    [_idNumber release];
    [_typeNumber release];
    [super dealloc];
}

- (instancetype)initWithDictionary:(NSMutableDictionary *)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)desSearchDataObjWithDictionary:(NSMutableDictionary *)dictionary
{
    DesSearchDataObj *dataObj = [[DesSearchDataObj alloc] initWithDictionary:dictionary];
    return [dataObj autorelease];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.idNumber = value;
    } else if ([key isEqualToString:@"type"]) {
        self.typeNumber = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
